package cn.dglydrpy.fundmanagement.dao.entiey;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.math.BigDecimal;

@TableName("investment_goal")
@Data
public class InvestmentGoal {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("fund_code")
    private String fundCode;

    @TableField("portfolio_id")
    private Long portfolioId;

    @TableField("goal_type")
    private String goalType; // 1-收益目标 2-价格提醒

    @TableField("target_value")
    private BigDecimal targetValue;

    @TableField("current_value")
    private BigDecimal currentValue;

    @TableField("achieved")
    private String achieved; // 0-未达成 1-已达成

    @TableField("target_date")
    private String targetDate;

    @TableField("created_time")
    private String createdTime;

    @TableField("updated_time")
    private String updatedTime;

    @TableField("status")
    private String status;
}